#ifndef _MUTEXLOCK_H
#define _MUTEXLOCK_H

#include <mutex>
class MutexLock{
public:
MutexLock();
~MutexLock();
void lock();
void unlock();
pthread_mutex_t * getMutexPtr(){
    return &_mutex;
}
private:
pthread_mutex_t _mutex;

};

class MutexLockGuard{
public:
MutexLockGuard(MutexLock & mutex);
~MutexLockGuard();
private:
MutexLock &_mutex;
};
#endif

